package com.wooophone.mpyeah.entity;

import com.wooophone.mpyeah.util.SystemUtil;

/**
 * 实体店铺
 * @author MingliC
 *
 */
public class RealStore extends BaseEntity {
	/** 评分 */
	private String grade;
	/** 店面图片 */
	private String shopFrontImg;
	/** 店铺内景图片 */
	private String indoorSceneImg;
	
	/**所属品牌ID*/
	private String brandId;
	
	private int level;
	
	/** 所属品牌 */
	private Brand brand;
	
	/**
	 * 绝对路径
	 */
	private String shopFrontImgAbsolutePath;
	
	/**
	 * 绝对路径
	 */
	private String indoorSceneImgAbsolutePath;
	
	
	
	/** 所属品牌 */
	public Brand getBrand() {
		return brand;
	}

	/** 所属品牌 */
	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	/** 评分 */
	public String getGrade() {
		return grade;
	}

	/** 评分 */
	public void setGrade(String grade) {
		this.grade = grade;
	}

	/** 店铺门面图片 */
	public String getShopFrontImg() {
		return shopFrontImg;
	}

	/** 店面图片 */
	public void setShopFrontImg(String shopFrontImg) {
		this.shopFrontImg = shopFrontImg;
	}

	/** 店铺内景图片 */
	public String getIndoorSceneImg() {
		return indoorSceneImg;
	}

	/** 店铺内景图片 */
	public void setIndoorSceneImg(String indoorSceneImg) {
		this.indoorSceneImg = indoorSceneImg;
	}

	/**所属品牌ID*/
	public String getBrandId() {
		return brandId;
	}

	/**所属品牌ID*/
	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getShopFrontImgAbsolutePath() {
		if(shopFrontImgAbsolutePath==null){
			if(shopFrontImg!=null){
				shopFrontImgAbsolutePath=SystemUtil.imageBasePath+shopFrontImg;
			}else{
				shopFrontImgAbsolutePath=null;
			}
		}
		
		return shopFrontImgAbsolutePath;
	}

	public void setShopFrontImgAbsolutePath(String shopFrontImgAbsolutePath) {
		this.shopFrontImgAbsolutePath = shopFrontImgAbsolutePath;
	}

	public String getIndoorSceneImgAbsolutePath() {
		if(indoorSceneImgAbsolutePath==null){
			if(indoorSceneImg!=null){
				indoorSceneImgAbsolutePath=SystemUtil.imageBasePath+indoorSceneImg;
			}else{
				indoorSceneImgAbsolutePath=null;
			}
		}
		return indoorSceneImgAbsolutePath;
	}

	public void setIndoorSceneImgAbsolutePath(String indoorSceneImgAbsolutePath) {
		this.indoorSceneImgAbsolutePath = indoorSceneImgAbsolutePath;
	}
	
	
}
